package neu.competition.service;

import neu.competition.dto.CompetitionsDTO;

import java.util.List;

public interface CompetitionsService {

    /**
     * 创建赛事
     *
     * @param competitionsDTO
     */
    void insert(CompetitionsDTO competitionsDTO, String id);

    /**
     * 获取赛事
     *
     * @param id
     * @return
     */
    List<CompetitionsDTO> getCompetitionSDotListByUserId(String id);

    List<CompetitionsDTO> getAllCompetitionsDTOList();

    CompetitionsDTO getCompetitionDTOSById(Integer id);

    boolean isDuplicate(CompetitionsDTO competitionsDTO);

    List<CompetitionsDTO> getCompetitionSDotList(String name);

    int UpdateCompetitionsLastest(int comId, int matchId);

    List<CompetitionsDTO> getAllCompetitionsDTOListThree();
}
